package com.kr.weitao.exception;

/** Created by paco on 2017/5/27. */
public class CommonException extends RuntimeException {
  private String code = "0";
  private String helpUrl = "";

  public String getCode() {
    return this.code;
  }

  public String getHelpUrl() {
    return helpUrl;
  }

  public CommonException() {
    super();
  }

  public CommonException(Throwable exception) {
    super(exception);
  }

  public CommonException(String message) {
    super(message);
  }

  public CommonException(String code, String message) {
    super(message);
    this.code = code;
  }

  public CommonException(String code, String message, String helpUrl) {
    super(message);
    this.code = code;
    this.helpUrl = helpUrl;
  }

  public CommonException(String code, String message, Throwable exception) {
    super(message, exception);
    this.code = code;
  }

  public CommonException(String code, String message, String helpUrl, Throwable exception) {
    super(message, exception);
    this.code = code;
    this.helpUrl = helpUrl;
  }
}
